package org.slf4j.impl;

import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;
import org.tulkas.log.TulkasLoggerFactory;

/**
 * @author <a href="mailto:tulkas.web@gmail.com">Tulkas</a>
 *
 */
public class StaticLoggerBinder implements LoggerFactoryBinder {

	private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();

	public static final StaticLoggerBinder getSingleton() {
		return SINGLETON;
	}

	public static String REQUESTED_API_VERSION = "1.6"; // !final

	private final ILoggerFactory loggerFactory;

	public ILoggerFactory getLoggerFactory() {
		return loggerFactory;
	}

	private StaticLoggerBinder() {
		loggerFactory = new TulkasLoggerFactory();
	}

	public String getLoggerFactoryClassStr() {
		return TulkasLoggerFactory.class.getName();
	}

}
